package com.ruoyi.web.controller.warning;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.warning.domain.query.Ipv4MacQuery;
import com.ruoyi.warning.service.IIpv4MacService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author chenhc
 * @since 2025-04-03
 */
@RestController
@RequestMapping("/ipv4Mac")
@Api(tags = "ipv4Mac", description = "用于处理ipv4Mac相关操作的控制器")
public class Ipv4MacController {
    @Resource
    private IIpv4MacService ipv4MacService;

    @ApiOperation("获取ipv4Mac")
    @GetMapping(value = "/getIpMac")
    public R getIpMac(Ipv4MacQuery query)
    {
        return R.ok(ipv4MacService.getIpMac(query));
    }
}
